<%@ Assembly Name="DVK.SP2007, Version=1.0.3.0, Culture=neutral, PublicKeyToken=4a0962a1b6913d20" %>
<%@ Assembly Name="DVK.SP2007.Core, Version=1.0.3.0, Culture=neutral, PublicKeyToken=4a0962a1b6913d20" %>
<%@ Import Namespace="DVK.SP2007.Constants" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentHistory.aspx.cs"
    Inherits="DVK.SP2007.Pages.DocumentHistory" MasterPageFile="~/_layouts/simple.master" %>
<%@ Register TagPrefix="Sharepoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%-- Browseri Title Bar --%>
<asp:Content ID="Content6" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <Sharepoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="<%$Resources:DvkWeb,DocumentHistory_lblPageTitle%>"
        EncodeMethod='HtmlEncode' />
</asp:Content>
<%-- Lehe pealkiri --%>
<asp:Content ID="Content8" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    <Sharepoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="<%$Resources:DvkWeb,DocumentHistory_lblPageTitleInTitleArea%>"
        EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="PlaceHolderMain">
    <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; height: 100%"
        class="ms-settingsframe">
        <tr>
            <td class="ms-error">
                <asp:Label ID="lbErrorMessage" runat="server" EnableViewState="False" />
            </td>
        </tr>
        <tr>
            <td width="100%" colspan="4" style="padding-top: 0px;">
                <table class="ms-pageinformation" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="top" style="padding: 10px;" width="100%">
                            <table width="100%" id="idItemHoverTable">
                                <tr>
                                    <th scope="col" colspan="2" style="padding-bottom: 4px;" valign="top">
                                        <h3 class="ms-standardheader">
                                            <span class="ms-linksectionheader">
                                                <Sharepoint:EncodedLiteral ID="EncodedLiteral3" runat="server" Text="<%$Resources:DvkWeb,DocumentHistoryDocumentInfo%>"
                                                    EncodeMethod='HtmlEncode' /></span></h3>
                                    </th>
                                </tr>
                                <tr>
                                    <th scope="row" nowrap valign="top" id="500">
                                        <Sharepoint:EncodedLiteral ID="EncodedLiteral4" runat="server" Text="<%$Resources:wss,listedit_title%>"
                                            EncodeMethod='HtmlEncode' />
                                    </th>
                                    <td width="90%" valign="top">
                                        <asp:Label ID="lblDocName" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <th scope="row" nowrap valign="top" id="600">
                                        <Sharepoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:wss,listedit_webaddr%>"
                                            EncodeMethod='HtmlEncode' />
                                    </th>
                                    <td dir="ltr" nowrap valign="top">
                                        <asp:Label ID="lblDocUrl" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <!--end document info header-->
        <!-- Start of sent history -->
        <tr>
            <td colspan="2">
                <table width="100%" cellpadding="0" cellspacing="0" border="0" id="onetidMngCytpeRptrTable">
                    <colgroup>
                        <col width="25%" />
                        <col width="20%" />
                        <col width="30%" />
                        <col width="30%" />
                    </colgroup>
                    <tr>
                        <td colspan="3" class='ms-vb2' style='padding-top: 3px; padding-left: 4px;'>
                            <b>
                                <h3 class='ms-standardheader'>
                                    <asp:Label runat="server" ID="PageDocumentHistorySendHistoryHeader" Text="<%$Resources:DvkWeb,DocumentHistorySendHistoryHeader %>"></asp:Label></h3>
                            </b>
                        </td>
                    </tr>
                    <tr>
                        <th scope="col" id="ContentTypeHeader" class="ms-vh2-nofilter">
                            &nbsp;&nbsp;&nbsp;<Sharepoint:EncodedLiteral ID="EncodedLiteral6" runat="server"
                                Text="<%$Resources:DvkWeb,DocumentHistorySendHistoryTitle%>" EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="ParentTypeHeader" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral7" runat="server" Text="<%$Resources:DvkWeb,DocumentHistorySendHistorySendDate%>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="SourceTypeHeader" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral8" runat="server" Text="<%$Resources:DvkWeb,DocumentHistorySendHistorySender%>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="TH5" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral13" runat="server" Text="<%$Resources:DvkWeb,DocumentHistorySendHistoryRecipients %>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                    </tr>
                    <asp:Repeater ID="rptSentMessages" runat="Server">
                        <ItemTemplate>
                            <tr class="">
                                <td class='ms-vb2'>
                                    &nbsp;&nbsp;&nbsp; <a href="<%# GetItemLink(Container.DataItem) %>">
                                        <%# Eval("Title") %></a>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetMetadataDate(Container.DataItem, Fields.SendingDate.Name)%> <%--Fields.SendingDate.Name--%>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetSenderInfo(Container.DataItem)%>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetRecipientsInfo(Container.DataItem)%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
        <!-- End of sent history -->
        <!-- Start of Received history -->
        <tr>
            <td colspan="2">
                <table width="100%" cellpadding="0" cellspacing="0" border="0" id="Table1">
                    <colgroup>
                        <col width="25%" />
                        <col width="20%" />
                        <col width="30%" />
                        <col width="30%" />
                    </colgroup>
                    <tr>
                        <td colspan="3" class='ms-vb2' style='padding-top: 3px; padding-left: 4px;'>
                            <b>
                                <h3 class='ms-standardheader'>
                                    <asp:Label runat="server" ID="PageDocumentHistoryRecieveHistoryHeader" Text="<%$Resources:DvkWeb,DocumentHistoryRecieveHistoryHeader %>"></asp:Label></h3>
                            </b>
                        </td>
                    </tr>
                    <tr>
                        <th scope="col" id="Th1" class="ms-vh2-nofilter">
                            &nbsp;&nbsp;&nbsp;<Sharepoint:EncodedLiteral ID="EncodedLiteral9" runat="server"
                                Text="<%$Resources:DvkWeb,DocumentHistorySendHistoryTitle%>" EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="Th2" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral10" runat="server" Text="<%$Resources:DvkWeb,DocumentHistoryRecieveHistoryRecieveDate%>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="Th3" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral11" runat="server" Text="<%$Resources:DvkWeb,DocumentHistorySendHistorySender%>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="TH4" class="ms-vh2-nofilter">
                            <Sharepoint:EncodedLiteral ID="EncodedLiteral12" runat="server" Text="<%$Resources:DvkWeb,DocumentHistorySendHistoryRecipients %>"
                                EncodeMethod='HtmlEncode' />
                        </th>
                    </tr>
                    <asp:Repeater ID="rptReceivedMessages" runat="Server">
                        <ItemTemplate>
                            <tr class="">
                                <td class='ms-vb2'>
                                    &nbsp;&nbsp;&nbsp; <a href="<%# GetItemLink(Container.DataItem) %>">
                                        <%# Eval("Title") %></a>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetMetadataDate(Container.DataItem, Fields.ReceivedDate.Name)%> <%--Fields.SendingDate.Name--%>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetSenderInfo(Container.DataItem)%>
                                </td>
                                <td class='ms-vb2'>
                                    <%# GetRecipientsInfo(Container.DataItem)%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
        <!-- End of Received history -->
        <wssuc:ButtonSection SmallSectionLine="true" runat="server" ShowStandardCancelButton="true">
            <template_buttons>
				<asp:placeholder ID="Placeholder1" runat="server">
                    <asp:Button class="ms-ButtonHeightWidth" ID="btnOk" runat="server" Text="<%$Resources:DvkWeb,DocumentHistory_btnOkText %>" OnClick="btnOK_Click" accesskey="<%$Resources:wss,okbutton_accesskey%>" />
				</asp:placeholder>
		</template_buttons>
        </wssuc:ButtonSection>
    </table>
    <Sharepoint:FormDigest ID="FormDigest1" runat="server" />
</asp:Content>
